coordinate validation