Added a method which makes the login with the server
Made the login form work and added a redirect when the user is not logged in to the form