Refactoring signin stuff

I think we could skip the `next_url` and have it directly `util.get_next_url()` as it used only here and is the same for all..