Used the type property to check text or URL