Support decorator based auth check and return url in login page.