How to make a hidden field as required?