using js to redirect to user page after login in