finally fixed login, logout function -seikun
login now persistently saves info