bugfix with adding the KeyValidation trait