My required field conditions are not working