fixing indentation error and adding createdBy to entity