Need help in making bluetooth keyboard work on startup on sonoma

i have a bluetooth keyboard.
when i start the mac, i have to use the onboard keyboard to login, i like to be able to use my bluetooth keyboard to be able to login with.
any help would be grately appreciated.
Thanks