changed login controller.