validate position