added before_create to do something before a new object is created