refactored for before filter for access token
refactored access_token to before filter