public static String getAppropriateForm(String in) {
    String formTag;
    if (in.equals("password"))
      formTag = "password";
    else if (in.contains("date"))
      formTag = "date";
    else
      formTag = "text";
    return formTag;
  }