Added login functionality to server