JSON Responses & Authentication (not finish yet)
Minor fix to the client