putting the callback and validation class requires to its own handlers