changed create account logic