Made user.nickname and xxx.code unique
Uniqueness checks for adding and editing
Request error logging