Fixed user home.
Added -k to curl command.