make it work
login and out