better logout script, better login feedback