validation with redrict