Added logic to remember user checkbox and radio button inputs