fix the activation process to deal with inactive users trying to sign in, already activated users,
and activating new users