trying to make UserController to accept json