Now my idea was to create some kind of templates, ...
# codereview
k
Now my idea was to create some kind of templates, for example a UsernameField which would extend the Field class and add a "username" property in the constructor, but then I'd also have to add things like a LoginUsernameField which would add the "username" property and also the "loginname" property, same goes for the email etc..