If you can't login after Factory Reset in Windows 11, and after factory reset you are still prompted for sign in but sign in is impossible, see this post.
If you recently tried installing Windows 11, you might have noticed something new: Microsoft now requires you to sign in with ...