fix register bug, saving account to session