move the login and register part to server, TODO: clean up the loginInfoStorage