Handle redirection in cases where the login form is accessed from auth decorator