Implemented validation for null values and non email values.