Implemented sign out functionality