refactor create user iphone