Fixed Login/Logout Issue
Syntac Fixes