changed name of res on route check auth