added logout button
added unit test cases