added regex validation to contact model