Logout working. updated docs.

- added new func to authentication service to check if user logged in
- added logout view and api call