Added email verification and uniqueness validation

Added email verification which uses a helper function. Also checks for
uniqueness