throw exception if user name is already exist when register.