Added automatic login (if logged in before)