Fixed bug with updating user accounts