right swipe and logout bugs fixed.