Fixed required fields generation in module creation

Had problem while generating modules. HTML tags were displaying information outside there bounds. Have no idea, why it were done the way it was, but hopefully my fix is correct.