fixing get_authorize_url() method