remove use of factory in create user.

remove use of factory in create user.