Fixes some minor issues in the forms controller (warnings)