Fixed issues with writing out and reading in user records.