Fixed email validation and user registrations issues.