Added access token checking to login