Fixed bug in account creation