correction bug and remember me implementation