public override bool IsValid(object value)
 {
     if (value != null)
     {
         UserRepo ur = new UserRepo();
         return(ur.CheckUserName(value.ToString()));
     }
     return(false);
 }