Basic path validation.