Change login controller to use a template.