adding user controller and respoding to json