persistent login bug fix