conditions not working all of a sudden because of required field issue