fix login next to use query param