fixed required field validation