Validation on main page