Fixed the required attributes on form elements