Added the format and uniqueness constraint for email validation.

Added email format validation to prevent basic spam attacks. Also added uniqueness constraint for preventing redundant registrations.