fix main page and add validation