added authorize method
- prints access token or error if no acces token is found