added back the logic to figure out if remember me has been selected.
still probably broken :-)