tweak to make registration work with remember me