validation errors fixed