fixed validation and reddirect when no validation error