solved logout issue