check_access_token function

Check if authentication has been made