Why are the required fields not being required prior to submission