Login template and controller updates