Adding validation class, page validation method