working on login
fixed logout