fixing auth typo and JSON error