To avoid this problem, choose the right potatoes and follow the frying tips. Use grater and make sure to squeeze water after grating. Don't soak the potaotes in water for so long. This one is the main reason to get mushy.