fixing pass validation