Fixes #839. When editing users, show 'updated' instead of 'added'.
Correct check for 'added' and 'updated' log message.
Merge pull request #1385 from xiaohutai/master

Correct log message for creating a new user and editing an existing user