Fixed session redirect issue for dashboard