moved login redirect into login tmpl