added case insensitive validation for email