changed check of username uniqueness