How to modify a form field script to make it Required