Added login controller.