How to make field require or un-required?