Added form validation for the login form.

Error messages, hooray.