updated restful route redirects if not logged in