Validates fields