Fixed login logout flag on existing users