Adds max_layers attribute to the user model