Removed user_id return when registering user
Added try/except block for json parse errors