Fixed client-side validation in login.html

Issue:- On the login page, there was no client-side validation so every time user clicks Login, the call was made to the server. The validation was then done at the server and error sent back to the client, which was subsequently shown on the client.

I have fixed the login.html template to fix the above issue.