added login, logout, changed some stuff. did not test yet though