updated addtab validation

somehow data["tabname"] and data["taburl"] are undefined when uploading
tab to database