How to get a value from a database based on a value from the same row, but different column - pls help!!!!!!!!!!

Your code looks different from mine. You didn’t include the try { } catch{} block
As well, I didn’t see the await infront of the line:

authentication.login(email, password)

I’m not sure if this is causing you grief because without the await, the code may be trying to run, even though you haven’t logged in yet. The await is needed to allow the processing of you being logged in by Wix. You need this to allow the login process to complete before the rest of the code executes.