Implemented working login on server.