added sign out logic