Added some rudimentary validation to the login form.