Port email login to HHU template (#41)