implement of validate username