Fixed logout error on Profile page