Fixed login bug

If cookies where correct but there is no access token. The token is now
obtained.