Added validation and highlighting to the form