Required field validation is enabled but does not work