Validate homepage code