validation and error messages redirects