Required field error comes up even when the field is filled.