Renamed validate to isValid