fix bug with login