sign in, sign out functionality added