Cleaning up url encodes
cleaned up auth process, havent tested it yet