implemented account creation in model