Fix authentication of the default user and Check existence before adding new users

This pull request fixes the following problems:

- Fix a bug which allows adding a user with a username that already exists.
- Fix a bug which allows default user to authenticate with a default password after it has been changed.

My ICLA is listed under "Furkan Bıçak"