Add required/not required to form fields.