Add fun to validation