add validation to front page form