checked if logged in on login form