Fix logout to redirect back to the same page