logout and clear session implemented