Added Some Login/Logout Related Code (functionality not implemeneted yet)