Why are my required fields not working?