use redirect class for recirect_uri checking