registration module completed with comments