Fixing few bugs, log off functionality added

Fixing few bugs, log off functionality added