Added: change the color f the input field when the value is incorrect
Refactoring in static controller JS.