fix email validations

Email should be optional. Changed validations and new tests added