Added redirect to register flag on $ni->login(); to make redirect to register form instead of login form.