Added validation of username uniqueness for #171