model validation added back for pins