Fixed error for datepicker in invitation. redirecting after inviting done