BugFixes, Key- and Categoryvalidation implemented