check hand validity