add before save function in player model
edit gitingore