updated register and createAccount