refactor(registration): switch to json instead of post