reworked ui
added next url redirection when on login and register pages