validate and home page