hotfix bug for state in login box