login/edit: generate checkbox input after post handling