broke custom validator out from else statement so custom validators can be used in addition to built in type validators