-- implemented login controller
-- connected to server