validate pins