How to set required form fields