Cleanup, validation checks, proper res.send and res.json