[webui][api] added required_fields to check for empty params/content and fixed other tid-bit bugs