Fix TLS in html form reflect databsae value, closes #38