added login

changed main screen to work with login.
not completed, still under construction