Add logic for contact validation spec