How to change the red color when a mandatory field has not been completed?