Fixed bug in validateRecipient