update input ( required fields colored)