Converted signup API to JSON output