Added optional urlfield in user profiles

I think it's better to check the response code, rather than just catch any exceptions. Please take a look at the other code I pointed you to to see how that is checking the response code.