Moves validation for placeholder field to  init, also now explicitely checks for type string.