required fields not validating on submit