Added a check to see if stored access token is valid or not