Add input validation for share deal info function.