[Viky] Minor refactoring in user flow redirection and in registration.js