added working user login/logout