Automatic form type registration