Implemented the login form.