problems with validation