Fix authenticate returned object
Change error handling style