[Issue #2]Added code for authentication and Logout.