How to add sprite renderer to my login canvas?
You didn’t give us your code, but I guess, you just don’t have Sprite Renderer component in this GameObject.
Also, I recommend you to study some stuff in learn section: Learn Game Development Without Coding Experience | Unity