add redirection mode to login (not enabled by default)