sanity check to inputed values in submit form
added json_compress() to compress, base64 encode and store analysis report in database