If the script you posted is attached to the node register_screen, then this is how to reference its LineEdit child node UsernameInput:
@onready var usernameEntry: LineEdit = $UsernameInput
Try that, and add a print statement in _on_username_input_text_changed
to verify that it's called when the user types in the LineEdit.