making progress on login with session support
login done