handle register and login redirects

login byaaaah