fixed login of states, added login to site page, logout from site, create state