implemented user login/logout/settings

settings is not finished yet