fixed bug in depdency validation

error messages should be a lot more helpful now