Fixed login so users that are already logged in don't need to re-login