Added a basic validation class