Fixed empty endoint URL for new account Closes #345
Fixed empty/nil endpoint values. Closes #345