Add email opt in to old login and register pages

Add support for email-opt in pref to the old login/register pages.
Reviewers: @rlucioni @dianakhuang