added sign in / sign out functionality