buggy implementation of edit account