Form registration.

Fixes claroline/Claroline#196