added some validation to contact model