fixes  for demo version 0.1 (login/logout)