Refactor user controller

to remove debug output
Refactor user controller

to use Flight::json() instead of echo json_encode().