fix required option on input fields