Improved the email verification functionality.