Added redirect to /view after login