moved check_store in inline validation function