Lots of errors and possible errors in that script.
For starters, you don't take in account that a user can sign out and another user can sign in.
Also in my
Nudge Flood Protection script I use like almost 10 nested checks for very important reasons, I don't see how you could have reduced that to, well, almost none.
PS: Most important error of all: you got my name wrong