Added error checking to the function to create a bitcoin topup address for the user.