Upgrade mod_login to J2.5 (taken from atomic template)