Finish "remember me" and log out function