Resolved issue of logout