fixing an exception issue in account creation