created registration action
persisting registration in mongodb