added logout function in settings