updated account model for the rails prev version nested issue