fixed required validator