Break out a validator lambda
Break out a validator lambda and validating email format for registration