homework is valid, comment with validation messages and code