logout and signin working