working with validation