Troubleshooting logout function (still has no effect)