Fix uploadError validation rule