sign in out logic works