It's not the solution that is invalid, the solution you have in this thread is correct, just seems that you don't know how to use it, which is perfectly fine, nobody started with all the knowledge, just learned it over time. But being that rude won't help you...
login.lua
local...