Trim username/password/subscriber code of extra space before sending.
Cancel dialogs when touching outside. #171