isValid method to test if Models are able to added to the DB