Issue #113, split json_response into json_response_string and json_response_dict and changed fucntion calls in auth.py