validation flow now working