change validation logic