Simplify the use of required callback.

You don't have to validate whether the field is required; only return TRUE if it is required, and the library will validate the field.