Made changes to User controller to accept and return Json