Fixed the output json and handling all errors
Handling when the user do not have a real name