[Front-end] Added highlighting of the textbox depending on validity