Fix bugs with request function
Add auth function with didn't work