Login/Logout flow

Corrected the flow of login and logout.
In record activity back button now acts as log out.