validations working on submit