add logout feature, tests, login module