added new logic to email verification