signing out feature added and refactored