Fix name validation method handling as its return type had changed