Try to fix login loop.