implement validation at stacks index page