fixed required validation