fixing if user is not present, it creates a new one functionality