register and reminder fixed to return JSON