Added some validations to visits