signin and out not quite working