added study session validation