fixed bug in dependency validation

error messages should be a lot more helpful now