Added a small JS form validation to the login form just to make sure the form contains data before sending it to the server