Added validations and call XmlHttpRequest for BlackBerry