fix infinite loop with terms and conditions for non-JS users