fix login redirect bug(template syntax)