update create method in ledgers controller to accept to json input from client