Login and logout now fully functioning