validation checks in forms and redirections