adding resolve redirects to authenticate method