modify controller and add login page