fix profile validation