build metadata needs current user in arguments
Improved checks for nil or empty fields to avoid blank sections in views
Fixed error in worktype validation