createUserType function half done