check field for required first, after for cached text

fixed order of validation, required first.