added login controller and view