task#5545 check an invitation is valid or not before save