When a logged in user hitting the registration page it should redirect to the app.How to resolve this