code not working

Just what it means - logout function doesn’t return a status.