Fix: Refactor auth logic and clean up unused variable
Adjusted authentication checks to ensure proper user validation, and moved backend assignment within the updateAuthentication
function. Also removed an unused variable from lua.go
to improve code clarity.
Signed-off-by: Christian Roessner c@roessner.co