Small fixes.
Entity creation and invalid form handling.