Home Form validation error, input filed should highlight when error comes
 I have the following HTML code, where if my field is entered some value and erased, I am getting my field highlighted with red and get error message, mobile number is required. But if I type alphabet, I am getting error message, only numbers but the input box is not highlighted as red. HTML: