Fixed username/email duplicates detection
updated tests & sample app