Fix remember-me function.