Added URL rerouting to login