Not able to enter password for few seconds at login screen in Kubuntu 23.04

I am using Kubuntu 23.04 on HP Pavilion laptop.
Everything is working fine except one problem at login screen.

I am not able to type a password for the first few seconds(around 10 seconds). Nothing gets typed in the input box of password at the login screen. After a few seconds the input box start taking input.

I try clicking on input field still not able to type password. I have to wait for few seconds to type password.

I am facing this in both X11 and Wayland.

How can I trubleshhot and fix this bihaviour?