fixes issue with validator returning same error message when validating both user and package. Also fixes tests which broke after the first commit