trying to check for duplicate email address and stop input of null value fields.