thanks for taking time and reading this question. I have a function called loginstatus(), it evaluates the login status, I want it to alter state below