Make sure both email address and username are unique in db