moved validation class to new core package