Posting login data to url and parsing json response. Note: The url for posting data will need to be updated.