Fix key validation to check for length instead of presence