Catch AuthorizationError
Extract the login function from main function
Remove get_consumer_and_token and all exception handling
Use cmd as a wrapper to catch all exceptions
Remove input_consumer_pair