def create(self, validated_data):
    user = get_user_model()(**validated_data)
    user.set_password(validated_data['password'])
    user.save()
    return user
def create(self, validated_data):
    user = get_user_model()(**validated_data)
    user.set_password(validated_data['password'])
    user.save()
    return user