Bug fix for email exists check.