Removed unused code; fix for 500 for bad JSON on login; auth updates
Formatting update only