Check for accesstoken before saving it to session