Fixed bug when logging in silently