Fixing a bug with the remember me feature