fixed bug on login, and save user account