edit returned json in register api