make login cookies permanent
implement notexists template operator