added validation errors to pages