fixed relog issue; uid is now the email used to sign-in