Redirect to prevent url after login